xen: arm: Support <32MB frametables
authorChris Brand <chris.brand@broadcom.com>
Fri, 21 Aug 2015 21:30:37 +0000 (14:30 -0700)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 11 Sep 2015 13:29:34 +0000 (14:29 +0100)
commit88ab6b65395b2c81ede747cf2d13814241111ee6
tree55fcca7dba8a9cc6ba6931f46544aff8d6c37a68
parentd87d52248dc7d18ac27529fa5ea803a23126f0f0
xen: arm: Support <32MB frametables

setup_frametable_mappings() rounds frametable_size up to a multiple
of 32MB. This is wasteful on systems with less than 4GB of RAM,
although it does allow the "contig" bit to be set in the PTEs.

Where the frametable is less than 32MB in size, instead round up
to a multiple of 2MB, not setting the "contig" bit in the PTEs.

Signed-off-by: Chris Brand <chris.brand@broadcom.com>
Reviewed-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/mm.c